package com.yuke.cloud.service.pmc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.pmc.dto.ProdAttributeDto;
import com.yuke.cloud.service.pmc.dto.ProdCategoryAttributeDto;
import com.yuke.cloud.service.pmc.entity.ProdCategoryAttribute;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProdCategoryAttributeMapper extends MyMapper<ProdCategoryAttribute> {
    List<ProdCategoryAttributeDto> getBindByCategoryId(Long categoryId);
    List<ProdCategoryAttributeDto> getEnableBindByCategoryId(Long categoryId);
    List<ProdAttributeDto> getUnboundByCondition(@Param("categoryId") Long categoryId, @Param("attributeCategoryId") Long attributeCategoryId, @Param("attributeName") String attributeName);
    List<ProdCategoryAttribute> getAttributeIdsByCateAttrIds(List<Long> cateAttrIds);
}